<template>
	<view class="main">
		<view class="myform">
			<view class="bt">
				设置您的新密码
			</view>
			
			<form @submit="setNewPw" class="">
				<view class="myinput btx">
					<input class="uni-input dhuis_b" v-model="form.password" @input="checkPw" name="password" placeholder="新密码" />
				</view>
				<view class="btn">
					<button form-type="submit" :disabled="disabled1" class="mybtn" :class="{mhs_bg_active:!disabled1,wjh_btn:disabled1}">提交</button>
				</view>
			</form>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form:{password:''},
				disabled1:true,
			}
		},
		methods: {
			checkPw(){
				if(!this.func.empty(this.form.password)){
					this.disabled1=false;
				}else{
					this.disabled1=true;
				}
			}
		}
	}
</script>

<style>
@import url("../my.css");

</style>
